/**
 * 
 */
package org.paradise.dms.services.impl;

import java.util.List;

import org.apache.log4j.Logger;
import org.paradise.dms.dao.impl.DormitoryChargeDAOImpl;
import org.paradise.dms.dao.impl.DormitoryDAOImpl;
import org.paradise.dms.dao.impl.StudentBedLinkDAOImpl;
import org.paradise.dms.dao.impl.StudentDAOImpl;
import org.paradise.dms.pojo.Dormitory;
import org.paradise.dms.pojo.DormitoryCharge;
import org.paradise.dms.pojo.Student;
import org.paradise.dms.pojo.StudentBedLink;
import org.paradise.dms.services.DormitoryChargeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dheaven.framework.dao.DaoException;

@Service
public class DormitoryChargeServiceImpl implements DormitoryChargeService {
	@SuppressWarnings("unused")
	private static Logger log = Logger.getLogger(DormitoryChargeServiceImpl.class);

	@Autowired
	private DormitoryChargeDAOImpl dormitorychargeDAOImpl;
	@Autowired
	private StudentDAOImpl studentDAOImpl;
	@Autowired
	private DormitoryDAOImpl dormitoryDAOImpl;
	@Autowired
	private StudentBedLinkDAOImpl studentbedlinkDAOImpl;

	

	public StudentDAOImpl getStudentDAOImpl() {
		return studentDAOImpl;
	}

	public void setStudentDAOImpl(StudentDAOImpl studentDAOImpl) {
		this.studentDAOImpl = studentDAOImpl;
	}

	public DormitoryDAOImpl getDormitoryDAOImpl() {
		return dormitoryDAOImpl;
	}

	public void setDormitoryDAOImpl(DormitoryDAOImpl dormitoryDAOImpl) {
		this.dormitoryDAOImpl = dormitoryDAOImpl;
	}

	public StudentBedLinkDAOImpl getStudentbedlinkDAOImpl() {
		return studentbedlinkDAOImpl;
	}

	public void setStudentbedlinkDAOImpl(StudentBedLinkDAOImpl studentbedlinkDAOImpl) {
		this.studentbedlinkDAOImpl = studentbedlinkDAOImpl;
	}

	public DormitoryChargeDAOImpl getDormitorychargeDAOImpl() {
		return dormitorychargeDAOImpl;
	}

	public void setDormitorychargeDAOImpl(DormitoryChargeDAOImpl dormitorychargeDAOImpl) {
		this.dormitorychargeDAOImpl = dormitorychargeDAOImpl;
	}

	@SuppressWarnings("unchecked")
	public List getDormitoryCharge(String enrollyear, String chargeyear, int chargestatus, int isextension, int startrow, int pagesize) {
		return dormitorychargeDAOImpl.getDormitoryCharge(enrollyear, chargeyear, chargestatus, isextension, startrow, pagesize);
	}

	public int getStudentLodgeChargeInfoRows(String enrollyear, String feesyear, String chargestatus, String lodgechargetype) {
		return dormitorychargeDAOImpl.getStudentLodgeChargeInfoRows(enrollyear, feesyear, chargestatus, lodgechargetype);
	}

	@SuppressWarnings("unchecked")
	public List getDormitoryChargeForExport(String enrollyear, String chargeyear, int chargestatus, int isextension) {
		return dormitorychargeDAOImpl.getDormitoryChargeForExport(enrollyear, chargeyear, chargestatus, isextension);
	}
	
	public int getCount(String searchsql) {
		return dormitorychargeDAOImpl.getCount(searchsql);
	}
	
	public List<Student> getStudentBySQLSearchConditions(String searchstudentsql, int pageSize, int startRow) {
		return dormitorychargeDAOImpl.findStudentBySQLSearchConditions(searchstudentsql,pageSize,startRow);
	}
	
	@SuppressWarnings("unchecked")
	public List getStudentBySQL(String searchstudentsql) {
		return dormitorychargeDAOImpl.getStudentBySQL(searchstudentsql);
	}
	@SuppressWarnings("unchecked")
	public boolean exportToCharge (String studentids,String year) {
		return dormitorychargeDAOImpl.exportToCharge(studentids,year);
		
	}
}
